package FileParser;

import static org.junit.Assert.*;

import java.util.ArrayList;

import org.junit.Assert;
import org.junit.Test;

import Model.Author;
import Model.Manuscript;
import Model.Roles;

public class FileParseTest {

	@Test
	public void createAuthor() {
		FileParser fp = new FileParser();
		ArrayList<Manuscript> scripts = fp.getManuscripts(Roles.AUTHOR.toString(), "Clint Eastwood", "100");

		String author = scripts.get(0).getAuthor();
		Assert.assertEquals("Clint Eastwood", author);
		
		String conference = scripts.get(0).getConference().getName();
		Assert.assertEquals("100",conference);
	}

}
